package Chapter6;

public class Example05 {
	public static void main(String[] args) {
		String s1="String";
		String s2="Str";
		System.out.println("judge it begining with 'Str'   "+s1.startsWith("Str"));
		System.out.println("judge it ending with 'ng'   "+s1.endsWith("ng"));
		System.out.println("judge it including 'tri'  "+s1.contains("tri"));
		System.out.println("judge it empty or not  "+s1.isEmpty());
		System.out.println("jugde them equal "+s1.equals(s2));
	}

}
